package com.ucode.search.crm.model;

import java.io.Serializable;
import java.util.Date;

import com.ucode.springboot.starter.ESsearch.annotation.Analyzer;
import com.ucode.springboot.starter.ESsearch.annotation.ESDocument;
import com.ucode.springboot.starter.ESsearch.annotation.ESField;
import com.ucode.springboot.starter.ESsearch.enums.DataType;

@SuppressWarnings("serial")
@ESDocument(indexName="crm_follow_record",idFieldName="id")
public class ESFollowRecord  implements Serializable{

    @ESField(datatype = DataType.long_type,keyword=false)
    private Long id;// ID
    
    @ESField(datatype = DataType.date_type,keyword=false)
    private Date createdTime;// 入库时间

    @ESField(datatype = DataType.date_type,keyword=false)
    private Date updatedTime;// 更新时间

    /**
     * 活动类型:1、销售工作2、售后工作3、其他
     */
    @ESField(datatype = DataType.integer_type,keyword=false)
    private Integer activityType;
    /**
     * 下次回访时间
     */
    @ESField(datatype = DataType.date_type,keyword=false)
    private Date nextTime;
    /**
     * 跟进内容
     */
    @ESField(datatype = DataType.text_type,keyword= true,ngram=true,suggest=true,analyzer=Analyzer.ik_smart)
    private String content;
    /**
     * 附件Id集合
     */
    @ESField(datatype = DataType.text_type,keyword= true,ngram=true,suggest=true,analyzer=Analyzer.ik_smart)
    private String fileIds;
    /**
     * 图片Ids
     */
    @ESField(datatype = DataType.text_type,keyword= true,ngram=true,suggest=true,analyzer=Analyzer.ik_smart)
    private String imgIds;
    /**
     * 关联客户Id
     */
    @ESField(datatype = DataType.long_type,keyword=false)
    private Long customerId;
    /**
     * 关联联系人
     */
    @ESField(datatype = DataType.long_type,keyword=false)
    private Long contactsId;
    /**
     * 目标类型:1线索2客户3商机4合同
     */
    @ESField(datatype = DataType.integer_type,keyword=false)
    private Integer targetType;
    /**
     * 跟进目标Id
     */
    @ESField(datatype = DataType.long_type,keyword=false)
    private Long targetId;
    /**
     * 创建人
     */
    @ESField(datatype = DataType.long_type,keyword=false)
    private Long createUserId;
    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Date getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
    public Date getUpdatedTime() {
        return updatedTime;
    }
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
    public Integer getActivityType() {
        return activityType;
    }
    public void setActivityType(Integer activityType) {
        this.activityType = activityType;
    }
    public Date getNextTime() {
        return nextTime;
    }
    public void setNextTime(Date nextTime) {
        this.nextTime = nextTime;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getFileIds() {
        return fileIds;
    }
    public void setFileIds(String fileIds) {
        this.fileIds = fileIds;
    }
    public String getImgIds() {
        return imgIds;
    }
    public void setImgIds(String imgIds) {
        this.imgIds = imgIds;
    }
    public Long getCustomerId() {
        return customerId;
    }
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }
    public Long getContactsId() {
        return contactsId;
    }
    public void setContactsId(Long contactsId) {
        this.contactsId = contactsId;
    }
    public Integer getTargetType() {
        return targetType;
    }
    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }
    public Long getTargetId() {
        return targetId;
    }
    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }
    public Long getCreateUserId() {
        return createUserId;
    }
    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }
    
}
